package com;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

import java.util.*;

/**
 * @author liuxiaoding
 * @data 2019/7/6
 */
public class Demo {
    public static void main(String[] args) {
        List<Integer> list=new ArrayList<>();
        List<Integer> synList= Collections.synchronizedList(list);
        synList.add(1);
        synList.add(1);
        System.out.println("数组长度："+synList.size());
        System.out.println("数组下标1："+synList.get(0));

    }
}
